<?php
include("include.php");

function list_diadiem($id) {
	$arr_list = get_array_fulldown("select quanhuyen_id, quanhuyen_ten from quanhuyen where tinhtp_id = '$id' order by orders", false);
	$html = tep_draw_pull_down_menu("quanhuyen_id", $arr_list, "", 'style="width:180px" ');
	return $html;		
}

sajax_export("list_diadiem");
//$sajax_function = loadHtml("../htmls_header/tmp_header_dangtin.htm","");

// begin sajax =====================
sajax_handle_client_request();
$sajax_js = sajax_get_javascript();
//$str_htm = ereg_replace("\/\/@sajax_js@", "$sajax_js", $str_htm);
//$str_htm = ereg_replace("<!--@sajax_function@-->", $sajax_function, $str_htm);
// end sajax =======================


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

<script language="javascript">
<? echo $sajax_js; ?>
	
</script>

<?php //echo $sajax_function; ?>
</head>

<body>
</body>
</html>